<template>
  <div>
    <div class="header">
    <div class="header-left">
      <div class="imgsbox">
        <img class="imgs" src="http://power.applinzi.com/wangyuan/static/img/wlsl_logo.png" alt="">
      </div>
    <div class="header-txt">
      <h1 class="txt1" @click="push"> 山 西 省 林 草 业 网 络 医 院 </h1>
      <h2 class="txt2">重大林草生物灾害监测预警智慧云服务平台</h2>
    </div>
    </div>
    <div class="header-inout">
        <input class="inout-box" v-model="search" type="text" placeholder="请输入关键字" placeholder-class="placeholderClass">
       <span class="txt" @click="isPushSecrch">查询搜索</span>
    </div>
      <div class="header-right">
        <div @click="push1">
        识别
      </div>
      <div @click="push2">
        诊断
      </div>
      <div @click="push3">
        防治
      </div>
      </div>
      <div class="header-login" @click="pathLogin">
        登录
      </div>
    </div>
    <div>
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      search: []
    }
  },
  methods: {
    push1 () {
      this.$router.push('/Distinguish')
    },
    push2 () {
      this.$router.push('/Diagnosis')
    },
    push3 () {
      this.$router.push('/Prevention')
    },
    pathLogin () {
      this.$router.push('/login')
    },
    isPushSecrch () {
      this.$router.push({
        path: '/Search',
        query: {
          search: this.search
        }
      })
    },
    push () {
      this.$router.push('/')
    }
  }
}
</script>

<style lang="less" scoped>
.header{
  width: 100%;
  height: 8.5vh;
  background-color: green;
  display: flex;
  justify-content: space-between;
 .header-left{
  display: flex;
  justify-content: space-between;
  .header-txt{
    margin-left: 10px;

    .txt1{
      font-size: 24px;
      color: #fff;
      // font-weight: 700;
      line-height: 6vh;
    }
    .txt2{
      font-size: 14px;
      font-weight: 450;
      line-height: 0;
      // margin-top: -10px;
    }
  }
 }
}
.imgsbox{
  width: 40px;
  height: 100%;
  margin-left: 10px;
}
.imgs{
  width: 40px;
  margin-top: 2vh;
  // margin-left: 10px;
}
.header-inout{
  line-height: 8.5vh;
  .inout-box{
    border-radius: 12px 0px 0px 12px;
    height: 28px;
    padding-left: 10px;
  }
  .txt{
    border-radius: 0px 12px 12px 0px;
    line-height: 8.5vh;
    background-color: #ffaa00;
    height: 28px;
    padding: 1.5px 10px 4px 10px;
    font-weight: 600;
    cursor:pointer;
  }

}
.header-right{
  width: 10%;
  line-height: 8.5vh;
  font-weight: 700;
  color: #fff;
  font-size: 18px;
    display: flex;
    justify-content: space-evenly;
    cursor:pointer;
  }
  .header-login{
    font-weight: 700;
    line-height: 8.5vh;
    color: #4e1e86;
    margin-right: 10px;
  }

</style>
